/*
 * @Author: your name
 * @Date: 2021-10-18 16:58:29
 * @LastEditTime: 2021-10-18 17:03:09
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \服务商联盟管理系统c:\Users\qianbaku\Desktop\coderwhy-supermall-master\src\network\request.js
 */
import axios from 'axios'

export function request (config) {
  const instance = axios.create({
    baseURL: 'http://152.136.185.210:7878/api/hy66',
    timeout: 10000
  })

  instance.interceptors.request.use(config => {
    return config
  },err => {
    console.log(err)
  })

  instance.interceptors.response.use(res => {
    return res.data
  },err => {
    console.log(err)
  })
  return instance (config)
}
